/**
 * @author zj
 * @desc:
 * @date: 2024/8/21 21
 */
import request from "@/request/index.js";

export function menusTree(params) {
  return request({
    url: "/system/menu/tree",
    method: "get",
    params,
  });
}

export function menuChangeShow(data) {
  return request({
    url: "/system/menu/isShow",
    method: "post",
    data,
  });
}

export function menuInfoById(id) {
  return request({
    url: "/system/menu/" + id,
    method: "get",
  });
}

export function menuAdd(data) {
  return request({
    url: "/system/menu/save",
    method: "post",
    data,
  });
}

export function menuEdit(data) {
  return request({
    url: "/system/menu/update",
    method: "post",
    data,
  });
}

export function menuDelete(data) {
  return request({
    url: "/system/menu/delete",
    method: "post",
    data,
  });
}
